package com.cms.web.business;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import com.web.BaseController;

/** 
 * 备注
 * 
 * @author ES
 * @version 1.0
 */
@Controller
@RequestMapping(value="/noteController")
public class NoteController extends BaseController{
	
	/**
	 * 评审合同列表
	 * @param model
	 * @return
	 * @throws Exception 
	 */
	@RequestMapping("/add")
	public String nodeAdd(@RequestParam String getDataMethod, @RequestParam String submitURL, @RequestParam String callbackMethod, Model model){	
		model.addAttribute("getDataMethod", getDataMethod);
		model.addAttribute("submitURL", submitURL);
		model.addAttribute("callbackMethod", callbackMethod);
		return "/cms/business/note";
	}
	
	/**
	 * 评审合同列表
	 * @param model
	 * @return
	 * @throws Exception 
	 */
	@RequestMapping("/update")
	public ModelAndView noteUpdate(@RequestParam String F_NOTE, Model model) throws Exception {	
		
		model.addAttribute("F_NOTE", F_NOTE);
		
		return ajaxDoneSuccess(""); 
	}
}
